package cn.doways.api.mapper;


import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @ClassName ToolsMapper
 * @Description //TODO
 * @Author shellming
 * @Date 2019-08-16 14:35
 **/

@Repository
public interface ToolsMapper {

    @Update("UPDATE student SET faceToken=#{faceToken} where id=#{id}")
    @ResultType(Integer.class)
    int updateFaceToken(String id,String faceToken);

    @Select("Select faceToken from student where id=#{id}")
    @ResultType(String.class)
    String getFaceToken(String id);
}
